<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>Bootman后台登录</title>
	
	<link rel="shortcut icon" href="/favicon.ico" />
	
	<#include "./layout/css.ftl"/>
</head>
<body class="hold-transition login-page">
	<div class="login-box">
		<div class="login-logo">
			<b>Bootman</b>后台登录
		</div>
		<!-- /.login-logo -->
		<div class="login-box-body">
			<p class="login-box-msg">输入登录信息</p>

			<form action="../../index2.html" method="post">
				<div class="form-group has-feedback">
					<input type="email" class="form-control" placeholder="输入登录邮箱">
					<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
				</div>
				<div class="form-group has-feedback">
					<input type="password" class="form-control" placeholder="输入登录密码">
					<span class="glyphicon glyphicon-lock form-control-feedback"></span>
				</div>
				<div class="row">
					<div class="col-xs-8">
						<div class="checkbox icheck">
							<label> <input type="checkbox"> 记住我
							</label>
						</div>
					</div>
					<!-- /.col -->
					<div class="col-xs-4">
						<button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
					</div>
					<!-- /.col -->
				</div>
			</form>
			<button id="ddd">测试按钮</button>
			<div id="tableName">
				消息框！
			</div>
		</div>
		<!-- /.login-box-body -->
	</div>
</body>

<#include "./layout/js.ftl"/>

<script src="plugins/iCheck/icheck.min.js"></script>

<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' /* optional */
    });
    
    function showPopover(target, msg) {
        target.attr("data-original-title", msg);
        $('[data-toggle="tooltip"]').tooltip();
        target.tooltip('show');
        target.focus();

        //2秒后消失提示框
        var id = setTimeout(
            function () {
                target.attr("data-original-title", "");
                target.tooltip('hide');
            }, 2000
        );
    }
        
    $('#ddd').click(function(event){
    	showPopover($("#tableName"),"表名已存在");
/*  	
    	$.bootMan.remoteGet('/ddd',"mytokenddd",function(d){
    		console.info(d)
    	},function(e){
    		console.info(e)
    	});
*/
    });
  });
</script>
</html>
